package com.qfedu.openplateform.manager.service.impl;

import com.qfedu.openplateform.manager.dao.TokenMapper;
import com.qfedu.openplateform.manager.entity.UserToken;
import com.qfedu.openplateform.manager.service.TokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class TokenServiceImpl implements TokenService {

    @Autowired
    private TokenMapper tokenMapper;
    @Override
    public List<UserToken> getToken() {
        return tokenMapper.getToken();
    }

    @Override
    public void del(Integer[] ids) {
        tokenMapper.del(ids);

    }

    @Override
    public void update(UserToken userToken) {
        tokenMapper.update(userToken);
    }
}
